package com.kgo.usermanage.service.impl;

import com.google.gson.Gson;
import com.kgo.usermanage.dao.UserDao;
import com.kgo.usermanage.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author keepgoon
 * @Description: TODO
 * @date 2018/12/1415:39
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;
    private Gson _gs =new Gson();
    @Override
    public String getUserCount() {
        Map<String,Object> outMap = new HashMap<>();

        outMap.put("count",userDao.getUser());
        return _gs.toJson(outMap);
    }
}
